﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="AddStaff.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

    <h1>Add Staff</h1>
    <asp:HyperLink ID="HyperLink3" runat="server"
        NavigateUrl="~/Admin/Staff/AddStaff.aspx">New Staff</asp:HyperLink>
    &nbsp;|
    <asp:HyperLink ID="HyperLink2" runat="server"
        NavigateUrl="~/Admin/Staff/ListStaff.aspx">View Staff</asp:HyperLink>
    <br />
    <p>
        <asp:Label ID="Label1" runat="server" Text="Staff Login:"></asp:Label>
        <asp:TextBox ID="tblogin" runat="server"></asp:TextBox>
    </p>
    <p>
        <asp:Label ID="Label2" runat="server" Text="Password:"></asp:Label>
        <asp:TextBox ID="tbpass" runat="server"></asp:TextBox>
    </p>
    <p>
        <asp:Label ID="Label3" runat="server" Text="Role:"></asp:Label>
        <asp:DropDownList ID="ddlRole" runat="server"
            DataSourceID="SqlDataSource1" DataTextField="Role" DataValueField="ID">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:MailSystem32ConnectionString %>"
            SelectCommand="SELECT [Role], [ID] FROM [tblRole]"></asp:SqlDataSource>
    </p>
    <p>
        <asp:Label ID="Label4" runat="server" Text="Branch:"></asp:Label>
        <asp:DropDownList ID="ddlBrach" runat="server"
            DataSourceID="SqlDataSource2" DataTextField="Name" DataValueField="ID">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server"
            ConnectionString="<%$ ConnectionStrings:MailSystem32ConnectionString %>"
            SelectCommand="SELECT [ID], [Name] FROM [tblBranch]"></asp:SqlDataSource>
    </p>
    <p>
        <asp:Button ID="Submit" runat="server" Text="Add Staff"
            OnClick="Submit_Click" />
    </p>
</asp:Content>

